/*
 * @Author: wangdian
 * @Date: 2023-06-08 09:43:07
 * @LastEditors: wangdian
 * @LastEditTime: 2023-06-08 10:02:19
 * @Description: file content
 * @FilePath: \workspace\node.js
 */
// var http = require('http');
// var url = require('url');
// var util = require('util');

http.createServer(function (req, res) {
    res.writeHead(200, { 'Content-Type': 'text/plain; charset=utf-8' });
    res.end(util.inspect(url.parse(req.url, true)));
}).listen(3000);
